package com.isnmp.nms.framework.discover.rstype;

import com.isnmp.common.snmp.mib.MibDeviceEntry;
import com.isnmp.nms.framework.discover.ResourceInfo;

public class DeviceType extends SNMPTableBasicMothType {
    public DeviceType() {
        setResoureTypeName(Messages.getString("DeviceType.0"));
    }

    public Class getORMappingClass() {
        return MibDeviceEntry.class;
    }

    public String getResourceSearchMoth() {
        return Messages.getString("DeviceType.1");
    }

    public ResourceInfo tableMibInfoToResouce(Object paramObject) {
        ResourceInfo localResourceInfo = new ResourceInfo();
        MibDeviceEntry localMibDeviceEntry = (MibDeviceEntry) paramObject;
        localResourceInfo.setResourceRSIDValue(localMibDeviceEntry.getHrDeviceIndex() + "");
        localResourceInfo.setResourceName(localMibDeviceEntry.getHrDeviceDescr());
        localResourceInfo.setResourceParam(Messages.getString("DeviceType.3") + localMibDeviceEntry.getHrDeviceType());
        return localResourceInfo;
    }
}